module.exports = {

    //入口文件
    entry: './main.js',

    //出口文件
    output: {
        path:__dirname,
        filename: 'build.js'
    },

    module: {
        loaders:[
            {
                test: /\.vue$/,
                use: {
                    loader: 'vue'
                }
            },
            {
                test: /\.js$/,
                use: {
                    loader: 'babel-loader'
                },
                exclude: /node_modules/
            }
        ]
    }
}